package com.lb.bs.client.callback;

import com.lb.bs.client.processor.beans.ProcessorDynamicHandlerBean;
import com.lb.bs.client.util.StringUtils;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.LoggerContext;
import org.apache.logging.log4j.core.config.Configuration;
import org.apache.logging.log4j.core.config.LoggerConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * program: LB-BS-Client
 * author: bsworld.xie
 * create: 2019-12-06 10:51
 * description:
 */
public abstract class UpdateCallBackService {

    private static final Logger logger = LoggerFactory.getLogger(UpdateCallBackService.class);

    /**
     * 当被 @LBClass 标识的Bean,任何一个Key的变更时,reload
     */
    public void reloadOnClass(ProcessorDynamicHandlerBean bean) {

    }

    /**
     * 指定key变更时进行reload
     */
    public abstract void reloadOnKey(ProcessorDynamicHandlerBean bean);


}
